﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CourseScheduling.DataAccess;

namespace CourseScheduling
{
    public partial class CourseRequestConfirmation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Session["tbStudentNo"] = string.Empty;
            Session["tbStudentName"] = string.Empty;
            Session["ddlSemester"] = string.Empty;
            Session["ddlYear"] = string.Empty;
            Session["ddlCourses"] = string.Empty;
            Session["ddlDay"] = string.Empty;
            Session["ddlTime"] = string.Empty;
            Session["ProgramCodeList"] = string.Empty;
            Session["IsRequired"] = false;
            Session["lblProfPrefId"] = string.Empty;

            var reqs = Session["StudentRequests"] as List<CSCourseRequest>;

            if (reqs != null)
            {
                reqs.Clear();
            }
        }

        protected void return_home_clicked(object sender, EventArgs e)
        {
            Response.Redirect("Default.aspx");
        }
    }
}